<?php 
/* SVN FILE: $Id$ */
/* KeywordHitLog Test cases generated on: 2011-11-18 13:21:25 : 1321602685*/
App::import('Model', 'KeywordHitLog');

class KeywordHitLogTestCase extends CakeTestCase {
	var $KeywordHitLog = null;
	var $fixtures = array('app.keyword_hit_log');

	function startTest() {
		$this->KeywordHitLog =& ClassRegistry::init('KeywordHitLog');
	}

	function testKeywordHitLogInstance() {
		$this->assertTrue(is_a($this->KeywordHitLog, 'KeywordHitLog'));
	}

	function testKeywordHitLogFind() {
		$this->KeywordHitLog->recursive = -1;
		$results = $this->KeywordHitLog->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('KeywordHitLog' => array(
			'id'  => 1,
			'keyword_id'  => 1,
			'ip_address'  => 'Lorem ipsum dolor sit amet',
			'hit_count'  => 1,
			'hit_hour'  => 1,
			'hit_date'  => '2011-11-18 13:21:25'
		));
		$this->assertEqual($results, $expected);
	}
}
?>